import request from "../util/request";

export function contactList(params) {
    return request({
        url: '/contact',
        method: 'get',
        params
    })
}

export function carouselList(params) {
    return request({
        url: '/carousel',
        method: 'get',
        params
    })
}

export function exampleList(params) {
    return request({
        url: '/example',
        method: 'get',
        params
    })
}

export function newsList(params) {
    return request({
        url: '/news',
        method: 'get',
        params
    })
}

export function honorList(params) {
    return request({
        url: '/honor',
        method: 'get',
        params
    })
}

export function richPageGet(id, type) {
    return request({
        url: `/${type}/${id}`,
        method: 'get',
    })
}

export function pageGet(params) {
    return request({
        url: `/page`,
        method: 'get',
        params
    })
}